package com.ruoyi.common.enums;

/**
 * 订单费用支付状态枚举类。
 * 订单费用支付状态。0：未支付，1：支付中，2：已支付，3：退款中，4: 退款失败，5：已退款
 */
public enum PayStatus {

    Unpaid(0, "未支付"),
    Paying(1, "支付中"),
    Paid(2, "已支付"),
    Refunding(3, "退款中"),
    RefundFailed(4, "退款失败"),
    Refund(5, "已退款");

    private int code;
    private String info;


    PayStatus(int code, String info) {
        this.code = code;
        this.info = info;
    }

    public int getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}
